import {App,} from "vue";
import {FunctionPlugin} from "@vue/runtime-core";

let modules = import.meta.glob('./*/index.ts', {eager: true, import: 'default'});
export const initPlugins = (app: App<Element>) => {
    let entries = Object.values(modules);
    for (let entry of entries) {
        // use<Options extends unknown[]>(plugin: Plugin<Options>, ...options: Options): this;
        // use<Options>(plugin: Plugin<Options>, options: Options): this;
        app.use(entry as FunctionPlugin)
    }
}